/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author iuliana.besan
 */
//public class Box3 {
package Box3;
    class Box3{
        int width;
        int height;
        int depth;
                void calculateVolume(){
                    System.out.print("Volume is ");
                    System.out.println(width * height * depth);
                    }
                void calculateArea(){
                   System.out.print("Area is");
                   System.out.println(width*height);
                }
                int calculateArea(int a){
                    return width*width;
                            
                    
                }
                public static void main(String args[]) {
                    
                    Box3 mybox3=new Box3();
                    mybox3.width=10;
                    mybox3.height=20;
                    mybox3.depth=15;
                    mybox3.calculateVolume();
                    
                    mybox3.calculateArea();
                    int area;
                    area=mybox3.calculateArea(10);
                    System.out.println("Area del quadrato:"+area);
                    
                    System.out.println("Operazioni aritmetiche di tipo intero:\n");
                    int a =1+1;
                    int b =a*3;
                    int c =b/4;
                    int d = c-a;
                    int e =-d;
                    System.out.println("a= "+a);
                    System.out.println("b = "+b);
                    System.out.println("c = "+c);
                    System.out.println("d = "+d);
                    System.out.println("e = "+e);
                    
                    int x = 42;
                    System.out.println("x mod 10 = "+ x%10);
                    double y =42.25;
                    
             System.out.println("y mod 10 = "+y % 10);
                }
       }
              
 
 

                            
                            
                    
                
                      
